package tetris;

import static org.junit.Assert.*;

import javax.swing.JButton;
import javax.swing.JFrame;



import org.junit.Test;

public class GameMenuTest {

	
	@Test
	public void testGameMenu(){
		GameMenu game = new GameMenu();
        String score = game.getTitle();
          
        assertTrue(score.equals("Tetris"));
        assertFalse(game.isResizable());
      //  assertTrue(game.isVisible());
        
        try{
        	game.setLocationRelativeTo(null);
        	game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    		game.setBounds(100, 100, 450, 300);
    		game.setSize(300,600);
        }
        catch(Exception e){
        		System.out.println("LocatonRelativeTo != null");
        }
        
       
	}

	@Test
	public void testStartGame() {
		//GameMenu game = new GameMenu();
   //     assertTrue(game.isVisible());
        //Component c;
        //boolean n = game.setLocationRelativeTo(c);
//      assertNull(n);
		
		fail("Not yet implemented");
	}

	@Test
	public void testViewHighScores() {
		
		HighScores y = new HighScores();
		assertFalse((y.isVisible()));
		//fail("Not yet implemented");
	}

	@Test
	public void testExitGame() {
		fail("Not yet implemented");
	}

	@Test
	public void testRun() {
		GameMenu game = new GameMenu();
		assertFalse(game.isVisible());
		//fail("Not yet implemented");
	}

	@Test
	public void testMain() {
		
		fail("Not yet implemented");
	}

}
